<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>管理员列表</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" type="text/css" href="${ctxPath}/static/police/css/common.css">
    <link rel="stylesheet" type="text/css" href="${ctxPath}/static/police/css/style.css">
</head>
<body>
<div class="embedLeft">
    <div class="breadcrumb">
        <span>权限管理</span>
        <b>管理员列表</b>
    </div>
    <div class="embedRight">
        <div class="power_head"><span class="add_power" id="add_manager">+新增管理员</span></div>
        <form method="post" id="loginform" data-imgcode="imgcode" action="${ctxPath}/admin/manage/">
        <div class="column_list clearfix">
            <div class="column">
                <span class="label">账号</span>
                <div class="colum_box"><input type="text" name="number"/></div>
            </div>
            <div class="column">
                <span class="label">手机号</span>
                <div class="colum_box"><input type="text" name="phone"/></div>
            </div>
            <div class="column">
                <span class="label">请选择权限</span>
                <div class="colum_box">
                    <div class="select_wrap">
                        <i class="i_drop"></i>
                        <span class="select_text"></span>
                        <select name="roleId">
                                <option >请选择角色</option>
                                @if(isNotEmpty(role)){
                                @ for(item in role){
                                <option id="${item.id}" value="${item.id}">${item.name}</option>
                                @}
                                @}
                        </select>
                    </div>
                </div>
            </div>
            <div class="search_div"><button class="blueBtn" type="submit">搜索</button></div>
        </div>
        </form>
        <div class="table_Box">
            <table width="100%">
                <tr>
                    <th><span class="check"></span></th>
                    <th>称呼</th>
                    <th>账号</th>
                    <th>添加时间</th>
                    <th>手机号</th>
                    <th>权限</th>
                    <th>操作</th>
                </tr>
                @if(isNotEmpty(grid.rows)){
                @ for(item in grid.rows){
                <tr>
                    <td><span class="i_check"></span></td>
                    <td>${item.name}</td>
                    <td>${item.number}</td>
                    <td>${item.createDate!,dateFormat="yyyy-mm-dd hh:mm"}</td>
                    <td>${item.phone}</td>
                    <td>${item.role}</td>
                    <td>
                        <span class="edits mr28" style="cursor:pointer;"  onclick="location.href='${ctxPath}/admin/manage/edit?id=${item.id}'" >编辑</span>
                        <span class="delete" style="cursor:pointer;"  onclick="location.href='${ctxPath}/admin/manage/remove?id=${item.id}'" >删除</span>
                    </td>
                </tr>
                @}
                @}
            </table>
        </div>
        <!--分页-->
        <div class="pagination paginationRt fr m-paging">
        </div>
        <!--分页 end-->
    </div>
</div>
<script type="text/javascript" src="${ctxPath}/static/police/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="${ctxPath}/static/police/js/base.js"></script>
<script type="text/javascript" src="${ctxPath}/static/police/js/paging.js"></script>
<script type="text/javascript" src="${ctxPath}/static/police/js/jsextend.js"></script>
<script type="text/javascript">
    var pagingte = new paging({
        el: '.m-paging',   //分页器初始化元素
        maxPage: ${grid.total},                //最大页数
        index: ${grid.page},                 //当前页数
        page: 5,                    //最大展示页数
        url: '${ctxPath}/adminlandlord/index/',       //跳转地址
        urlParamName: 'page', //页数参数名
        isHref:true
    });
</script>
</body>
</html>